﻿
using Fozzy;

namespace Fozzy.Gedcom
{
    public class Tag                                                : Fozzy.Object.Tag
    {
        #region Declarations
            // Expression pattern used to clean up the GEDCOM tag. Tag can contain alphanumeric characters, _, ., or -.
            //private readonly RegEx regTag = new RegEx(@"[^\w.-]")   ;
        #endregion

        #region States
            public bool                 Be_Pointer                  { get { return Starts_With(Statics.Arobas)          ; } }
        #endregion

        #region Structure
        #endregion

        #region Properties
            private _Match              Match(Name name)            { return new Split(name).Instances.Ruben()            ; }
        #endregion

        #region Constructeur
            public Tag(Name source)                                 : base(source)
            {}
            public Tag(_Match match)                                : base(match)
            {}
        #endregion

            public void Reach(Name name)
            {
                // Get the parts of the line.
                Set(Match(name))                                                            ;
                //Swap(this)                                                                ;
            }


    }
}
